<!DOCTYPE html>
<html lang="en">
<head>
    <title>系统登录</title>
    <link rel="icon" type="image/x-icon" href="/favicon.ico">
    <script type="text/javascript" src="/public.js"></script>
    <script type="text/javascript" src="/js/user/userLogin.js"></script>
    <link rel="stylesheet" type="text/css" href="/login/css/style.css"/>
    <style>
        .error {
            color: red;
        }
    </style>
</head>
<body>
<div id="web">
    <p style="height:130px;"></p>
    <p align="center"><img src="/login/images/logzi.png"/></p>
    <p style="height:40px;"></p>
    <div class="login">
        <div class="banner">
            <iframe id="frame_banner" src="/login/sban/banner.html" height="218" width="100%"
                    allowtransparency="true" title="test" scrolling="no" frameborder="0"></iframe>
        </div>
        <form action="#" id="loginFormId" method="post">
            <div class="logmain">
                <h1>&nbsp;</h1>
                <div class="logdv">
		            <span class="logzi">账 号：</span>
                    <input name="username" type="text" id="userName" value="" onkeyup="clsusername()"/>
                </div>
                <div class="logdv">
                    <span class="logzi">密 码：</span>
                    <input name="password" type="password" id="password" value="" onkeyup="clspassword()"/>
                </div>
                <p class="logzi">&nbsp;</p>
                <div class="logdv" style="height:40px;">
                    <p class="logzi">&nbsp;</p>
                    <input id="checkId" name="提交" type="submit" class="btnbg" value="点击登录"/>
                </div>
                <!-- <div>
                  <a href="#" class="more">注册</a>
                </div> -->
            </div>
        </form>
    </div>
    <p style="height:100px;"></p>
    <p align="center">技术支持:Master</p>
</div>
<script type="text/javascript">
    function clsusername() {
        $("#username-error").remove();
    }

    function clspassword() {
        $("#password-error").remove();
    }

    //new-add-2018-04-13
    try {
        var _href = window.location.href + "";
        if (_href && _href.indexOf('?kickout') != -1) {
            $.messager.alert('提示', '该账户已在其它地方登录！', '', function () {
                if (window != top) { //session过期后，登录窗口出现在子窗口解决方法
                    //top.location.href = location.href;
                    top.location.href = $WEB_ROOT_PATH + '/w/login';
                }
            });
        }
    } catch (e) {

    }
</script>
</body>
</html>
